package com.tecode.service;

import com.tecode.bean.Favorite;
import org.springframework.stereotype.Service;

import java.util.Date;
import java.util.List;

/**
 * Created by Administrator on 2019/4/10.
 */
public interface FavoriteService {
    List getTypeListByUserId(Integer userId);

    Favorite getFavoriteById(Integer favoriteId);

    int save(Favorite favorite);

    int del(Integer favoriteId);

    List getFavoritesById(Integer favoriteId);

    /**
     * 通过用户ID查询该用户的收藏歌单名称
     */
    List<String> selectSheetNameLisetByUserId(Integer userId);

    /**
     * 指定userID对指定musicID的收藏取消
     */
    int cancelCollection(Integer userId,Integer musicId);

    /**
     * 指定userID对指定musicID的收藏到指定收藏歌单中
     */
    int songCollection(Integer userId,Integer musicId,String name);

    /**
     * 指定userID新建收藏歌单
     */
    int newCollectionSheet(Integer userId, String name, Date creatTime);
}
